import Mock from 'mockjs'
import { getUserList } from './response/user'

const Random = Mock.Random
// Mock.mock('http://39.104.99.107:8088/back/generalUsers/selectGeneralUserList?num=1&size=10', getUserList)
Mock.mock(/\/selectGeneralUserList/, 'get', getUserList)
// Mock.setup({
//   timeout: 500
//   // timeout: '100-400'
// })

Random.extend({
  friut () {
    const friut = ['apple', 'peach', 'lemon']
    return this.pick(friut)
  }
})

export default Mock
